
import 'package:json_annotation/json_annotation.dart';

@JsonSerializable()

class BaseModel {
  int time;
  String ip;
  int code;
  String msg;
  String data;
  BaseModel({this.time, this.ip, this.code, this.msg,this.data});
  BaseModel.fromJson(Map<String, dynamic> json) {
    time = json['time'];
    ip = json['ip'];
    code = json['code'];
    msg = json['msg'];
    data = json['data'];
  }
  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['time'] = this.time;
    data['ip'] = this.ip;
    data['code'] = this.code;
    data['msg'] = this.msg;
    data['data'] = this.data;
    return data;
  }
}